package com.common.service;

import java.util.List;
import java.util.Map;

import com.common.dto.PrivilegeDTO;
import com.common.service.base.IService;


public interface PrivilegeService extends IService<PrivilegeDTO> {
	/**
	 * Created by wrl on 2017/07/11
	 *  分级查询所有记录
	 * @param entity
	 * @return
	 */
	Map<String, Object> selectByGraded(PrivilegeDTO entity);

	/**
     * 获取前两级权限
	 * Created by wrl on 2017/09/14
	 * @param entity
	 * @return
	 */
	Map<String, Object> selectTwo(PrivilegeDTO entity);

    /**
     * Created by wrl on 2017/07/13
     *  删除多条记录
     * @param ids
     * @return
     */
    Map<String,Object> deleteByIds(List<String> ids);
    /**
     * 条件查询(可以对functionName模糊查询)
     * @author chenby
     * @date 2017-8-8
     * @function 
     * @param privilegeDTO
     * @return
     */
    Map<String, Object> selectFunctionPaging(PrivilegeDTO privilegeDTO);

    Map<String, Object> selectAuthorityByType(PrivilegeDTO entity);
    
    /**
     * 查询button权限
     * @return
     */
    public List<String> selectButtonAuthority();
}
